#include "chauffage.h"
#include "ui_chauffage.h"

Chauffage::Chauffage(QWidget *parent, int m_IDEquipement, bool m_etat, float m_temperature, float m_temperatureMax, float m_temperatureMin) : Equipement(parent, m_IDEquipement),
    ui(new Ui::Chauffage)
{
    ui->setupUi(this);

    etat = m_etat;
    temperature = m_temperature;
    temperatureMax = m_temperatureMax;
    temperatureMin = m_temperatureMin;

    ui->valTemperature->setValue(temperature);
    ui->valTemperatureMax->setValue(temperatureMax);
    ui->valTemperatureMin->setValue(temperatureMin);
}

Chauffage::~Chauffage()
{
    delete ui;
}
